home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 July / EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso / lightwave / lwmlist / 96.lightwave-0222 / 000255_dwarner@webcom.com _Tue Feb 27 14:42:18 1996.msg < prev    next >
Internet Message Format  |  1996-03-08  |  8KB

  1. Received: from mail.webcom.com (mail.webcom.com [206.2.192.68]) by keeper.albany.net (8.7.4/8.7.4-MZ) with ESMTP id OAA26645 for <DWARNER@ALBANY.NET>; Tue, 27 Feb 1996 14:42:13 -0500 (EST)
  2. Received: from localhost by mail.webcom.com with SMTP
  3.     (1.37.109.15/16.2) id AA246750314; Tue, 27 Feb 1996 11:45:14 -0800
  4. Date: Tue, 27 Feb 1996 11:45:14 -0800
  5. Errors-To: dwarner@ALBANY.NET
  6. Message-Id: <960227192501_73122.301_EHJ113-1@CompuServe.COM>
  7. Errors-To: dwarner@ALBANY.NET
  8. Reply-To: lightwave@garcia.com
  9. Originator: lightwave@garcia.com
  10. Sender: lightwave@garcia.com
  11. Precedence: bulk
  12. From: Kent Lidke <73122.301@compuserve.com>
  13. To: lightwave@mail.webcom.com
  14. Subject: VRML saving
  15. X-Listprocessor-Version: 6.0c -- ListProcessor by Anastasios Kotsikonas
  16. Status: RO
  17. X-Status: 
  18.  
  19. David Barchas wrote:
  20.  
  21.  >I have just started on a project to make a vrml world... I know that
  22.  >there is a plug in for modeller to save the object as a *.wrl but is
  23.  >there anything for saving a scene as wrl with lights and textures and
  24.  >object placement and all the other stuff.  I don't even mean VRML2, just
  25.  >1.0.  If not are there any plans for this?  Or does anyone free program
  26.  >that would allow me to place objects in the world and texture them?
  27.  
  28.  Fountain is a freely available beta product from Caligari.  It loads .lwo
  29. objects, but not their textures.  It has good image-mapping tools and overall
  30. is a good VRML authoring tool, but it's VRML output isn't yet fully VRML
  31. compliant.  Guess that's why it's BETA.  If you have some patience, you can
  32. usually make it work.
  33.  
  34.  Also, I think someone's working on a LWPro article about this.
  35.  
  36.  In the meantime, I have a textfile I wrote which contains everything I know
  37. about eh VRML Plug-ins.  It's all true as far as I know, I apologize for any
  38. inaccuracies.  Here it comes:
  39.  
  40.  The scene2VRML plug-in is buggy, as far as I can tell.
  41.  
  42.  Bug #1:  You can only run it once per LW session before it starts writing
  43. junk.  Well,
  44.  sometimes more than one, it varies.
  45.  
  46.  Bug #2:  It doesn't save the object geometry.  It saves the scene info as a
  47. .wrl specifying
  48.  URLs for inline objects.  The first time you run it, it will save .wrls for
  49. the objects, but
  50.  there's no geometry in them.  The next time you run it, it won't even bother
  51. to make a bad
  52.  .wrl for the objects, though it may save the scene info correctly. 
  53. Eventually, even the
  54.  scene info will be corrupted.
  55.  
  56.  The good news:  There are ways around this.
  57.  
  58.  You can save the objects individually, and manually append them together with
  59. a text
  60.  editor.  This is easier than it sounds.  Open 2 text editor sessions, Write
  61. will do if you're
  62.  on Win or NT.  Open the VRML file for any of the objects you want in your
  63. scene.  In the
  64.  other window, open another object.  Somewhere down from the header, below
  65. camera and lighting
  66.  info, the object starts with
  67.  
  68.  DEF objectname Separator{
  69.  
  70.  Starting at the D in DEF, highlight all the text down to and including
  71.  
  72.  Done Object:objectname
  73.  
  74.  Hit control C to copy it.  Go back to the other window. Go the bottom of the
  75. file, and right
  76.  after the Done Object statement, insert the copied text.
  77.  
  78.  Voila, you've pasted em together.
  79.  
  80.  Even Easier:  In layout, use save transformed on all your objects, load them
  81. all into a
  82.  single layer in modeler, then VRMLsave the whole schmear.
  83.  
  84.  It really does pay to get to know the text files a little, tho.
  85.  
  86.  Some specifics on the requestors:
  87.  
  88.  VRMLSave:  Once you specify the object to VRMLSave, the requestor looks
  89. (roughly) like
  90.  
  91.                                 Save VRML File
  92.                   Object Name      objectname  (no extension)
  93.  
  94.                   Link URL         The URL you want to link to when you click
  95.                                    on the object in a browser.  The default is
  96. Newtek.
  97.  
  98.                   Comment          Theoretically, the comment will appear in
  99. the window
  100.                                    in the bottom of the browser when your
  101. cursor passes
  102.                                    over the object.  (It doesen't in WebFX, it
  103. shows the
  104.                                    Link URL)
  105.  
  106.  Keep in mind that VRMLs Z-axis is reversed, so you need to stretch the .lwo by
  107. -1 on the Z
  108.  and flip polys prior to the VRML save to maintain handedness.  If you haven't
  109. assigned colors
  110.  to the surfaces in layout, you'll get the default.  Only diffuse color info is
  111. converted, no
  112.  specularity, transparency, or texture maps and of course no procedural
  113. textures.
  114.  
  115.  On Scene2VRML:
  116.  
  117.  Once you select the scene, the requestor looks (roughly) like
  118.  
  119.                                    scenes
  120.  
  121.                    Input Scene          Path to scene
  122. (c:\newtek\scenes\file.lws)
  123.  
  124.                    VRML Object Path     path to where it will put objects (like
  125. I said, this
  126.                                         part doesn't work as far as I can tell
  127.  
  128.                    Object Path URL      where the scene .wrl will look for
  129. inline objects
  130.                                         when loaded in your browser.
  131.  
  132.  On the object path URL:  If you are using objects on your hard drive, you need
  133. to use a URL
  134.  that looks like
  135.  
  136.         file://localhost/c|/newtek/objects etc.
  137.  
  138.  The thing after the c is a weird colon.  On my keyboard, its the upper case of
  139. the key above
  140.  the enter and below the backspace.  It reads in the browser window as %7C. 
  141. Who knows?
  142.  Remember the slashes have to go forward in URLs.
  143.  
  144.  The first time you run scene2VRML, the above requestor will be followed by a
  145. requestor for
  146.  each object (again, I emphasize, this part doesn't work, so I don't think it
  147. matters what you
  148.  put in there.
  149.  
  150.  The scene.wrl at the bottom of this message was created with Scene2VRML.  The
  151. objects were
  152.  saved with VRMLSaver to the directories specified in the WWWinline nodes. 
  153. (UGScenes is a
  154.  directory I made for when the user group uses my machine).  It's just a ball
  155. and a cube, but
  156.  you get the idea.
  157.  
  158.  (I hope).
  159.  
  160.  The lines that say #Original geometry from... are comments from Scene2VRML. 
  161. We know it
  162.  doesn't save geometry correctly, and it apparently doesn't *read* it
  163. correctly, either,
  164.  'cause it specifies a no volume bounding box.  This means you won't see
  165. *anything* in your
  166.  browser unless you save the objects manually, not even a bounding box.
  167.  
  168.  You may want to run scene2VRML first, then look at the WWWinline nodes in a
  169. text editor, so
  170.  you know where to save your VRML objects.
  171.  
  172.  Anyway, I hope this helps.
  173.  
  174.  
  175.  #VRML V1.0 ascii
  176.  # Created     01/17/96 19:33:12  with Lightwave3D from NewTek, Inc.
  177.  #     www.newtek.com     1-800-TOASTER
  178.  Separator {
  179.  PerspectiveCamera {
  180.     position  0.000 0.500 -3.060
  181.     orientation  0.000 0.000 0.000 0.000
  182.  }
  183.  PointLight {  # Light
  184.     color  1.000 1.000 1.000
  185.     intensity  0.000
  186.     location  0.000 0.000 0.000
  187.     on  1
  188.  }
  189.  Separator {
  190.     Translation { translation  0.000 0.000 0.000}
  191.     # Original geometry from OBJECTS\VRML\ball
  192.     WWWInline {
  193.         name  "file://localhost/c|/newtek/ugscenes/ball.wrl"
  194.         bboxSize 0.000 -0.000 -0.000
  195.         bboxCenter 0.000 0.000 0.000
  196.     }
  197.  }
  198.  Separator {
  199.     Translation { translation  1.250 0.950 -0.650}
  200.     # Original geometry from OBJECTS\VRML\Cube
  201.     WWWInline {
  202.         name  "file://localhost/c|/newtek/ugscenes/Cube.wrl"
  203.         bboxSize 0.000 -0.000 -0.000
  204.         bboxCenter 0.000 0.000 0.000
  205.     }
  206.  }
  207.  
  208.  }
  209.  
  210.  
  211.  
  212.  
  213.  
  214.   E-mail from: Kent S. Lidke, 27-Feb-1996
  215.